package com.example.utils;

import cn.hutool.cache.Cache;
import cn.hutool.cache.CacheUtil;

public class LoginCache {

    private static final Cache<String, String> cache = CacheUtil.newTimedCache(5 * 60 * 1000L); // 设置过期时间为 5 分钟

    public static void put(String key, String value) {
        cache.put(key, value);
    }

    public static String get(String key) {
        return cache.get(key);
    }

    public static void remove(String key) {
        cache.remove(key);
    }
}
